package com.yt.user.models.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "AdminLoginVO", description = "管理员登录响应VO")
public class AdminLoginVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "JWT令牌或随机token")
    private String token;

    @ApiModelProperty(value = "管理员基本信息")
    private AdminInfo adminInfo;

    @ApiModelProperty(value = "令牌过期时间（时间戳）")
    private Long expireTime;

    @Data
    @ApiModel(value = "AdminInfo", description = "管理员信息")
    public static class AdminInfo implements Serializable {
        
        private static final long serialVersionUID = 1L;
        
        @ApiModelProperty(value = "管理员ID")
        private Integer id;
        
        @ApiModelProperty(value = "用户名")
        private String username;
        
        @ApiModelProperty(value = "角色信息")
        private String role;
    }
}